package com.fast.common.web;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value="Response", description="rest 调用的返回公共类")
public class Response {
	
	public Response(int code) {
		this.code = code;
	}
	
	@ApiModelProperty(value="返回状态码", name="状态码", dataType="int", example="200")
	private int code;
	@ApiModelProperty(value="返回对象值", name="对象", dataType="Object", example="{}")
	private Object payload;
	@ApiModelProperty(value="返回文本信息", name="文本", dataType="String", example="OK")
	private String msg;
	
	

}
